import request from '@/relyon/request'

import { versionKey } from '@/api/config'

// 检查版本更新
export function inspect(closeLog = undefined){
    return request({
        url : '/version/inspect',
        method : 'get',
        params : {
            versionKey,
            closeLog
        }
    })
}


// 检查版本更新
export function getAppInfo(){
    return request({
        url : '/version/info',
        method : 'get',
    })
}

export default {
    inspect,
    getAppInfo
}